package com.www.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * 测试Controller
 */
@RestController
public class TestController {
    @Autowired
    private TestService testService;

    /**
     * 测试调用
     * @return
     */
    @RequestMapping("/")
    public String hello(){

        return testService.hello("client 1:"+new Date().toLocaleString());
    }
}
